package com.ruoyi.ui.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ui.mapper.UiShopsMapper;
import com.ruoyi.ui.domain.UiShops;
import com.ruoyi.ui.service.IUiShopsService;

/**
 * 店铺Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-06
 */
@Service
public class UiShopsServiceImpl implements IUiShopsService 
{
    @Autowired
    private UiShopsMapper uiShopsMapper;

    /**
     * 查询店铺
     * 
     * @param shopId 店铺主键
     * @return 店铺
     */
    @Override
    public UiShops selectUiShopsByShopId(Long shopId)
    {
        return uiShopsMapper.selectUiShopsByShopId(shopId);
    }

    /**
     * 查询店铺列表
     * 
     * @param uiShops 店铺
     * @return 店铺
     */
    @Override
    public List<UiShops> selectUiShopsList(UiShops uiShops)
    {
        return uiShopsMapper.selectUiShopsList(uiShops);
    }

    /**
     * 新增店铺
     * 
     * @param uiShops 店铺
     * @return 结果
     */
    @Override
    public int insertUiShops(UiShops uiShops)
    {
        return uiShopsMapper.insertUiShops(uiShops);
    }

    /**
     * 修改店铺
     * 
     * @param uiShops 店铺
     * @return 结果
     */
    @Override
    public int updateUiShops(UiShops uiShops)
    {
        return uiShopsMapper.updateUiShops(uiShops);
    }

    /**
     * 批量删除店铺
     * 
     * @param shopIds 需要删除的店铺主键
     * @return 结果
     */
    @Override
    public int deleteUiShopsByShopIds(Long[] shopIds)
    {
        return uiShopsMapper.deleteUiShopsByShopIds(shopIds);
    }

    /**
     * 删除店铺信息
     * 
     * @param shopId 店铺主键
     * @return 结果
     */
    @Override
    public int deleteUiShopsByShopId(Long shopId)
    {
        return uiShopsMapper.deleteUiShopsByShopId(shopId);
    }
}
